package com.example.flow.pipeline.core;

import com.example.flow.pipeline.model.result.FlowResult;

/**
 * @Desprication: 阀门接口，阀门都需实现该接口或者该接口的扩展接口
 * @Author: YangBin
 * @Date: created in 11:08 2020/2/23
 * @Modify By:
 */
public interface Valve {

    String name();

    PipeLine pipeline();
    /**
     * 执行
     * @return FlowResult
     */
    FlowResult<?> execute();

}
